using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;

/// <summary>
/// Summary description for Distance
/// </summary>
public class Distance : IBusinessEntity
{
    private int _distanceID;
    private string _description;

    public Distance()
    {
    }

    public Distance(int distanceID, string description)
    {
        _distanceID = distanceID;
        _description = description;
    }

    public int DistanceID
    {
        get { return _distanceID; }
        set { _distanceID = value; }
    }

    public string Description
    {
        get { return _description; }
        set { _description = value; }
    }

    #region IBusinessEntity Members

    void IBusinessEntity.Fill(SqlDataReader reader)
    {
        _distanceID = reader.GetInt32(0);
        _description = reader.GetString(1);
    }

    #endregion
}
